package com.smartthinking.destinomusical;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.smartthinking.destinomusical.base.BaseActivity;
import com.smartthinking.destinomusical.obj.Cancion;

public class MenuCompartir extends BaseActivity{
	private Cancion cancion;
	
	public static final String PREFS_NAME = "MyPrefsCompartir";
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.menu_compartir);
		cancion = getIntent().getParcelableExtra("cancion");
	}
	
	public void onClickCancel(View vista){
		finish();
	}
	
	public void onClickFacebook(View vista){
    	String texto = getString(R.string.msg_sang) + " " + cancion.getNombre() + ", Karaoke Box!";
    	Intent intent = new Intent(this, MiFacebook.class);
    	intent.putExtra("FACEBOOK",texto);
    	startActivityForResult(intent,11);
		finish();
	}
	
	public void onClickTwitter(View vista){
		String texto = getString(R.string.msg_sang) + " " + cancion + ", Karaoke Box!";
    	Intent intent = new Intent(this, Twitter.class);
    	intent.putExtra("TWITTER",texto);
    	startActivityForResult(intent, 12);
    	finish();
	}
	
}
